Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netapp volumes: Add restoreParameters #17293

Conversation

modular-magician
Copy link
Collaborator

This PR is the next stop on adding functionality to the google_netapp_volume resource. It adds support for restoreParameters which are two features:

  1. Create a clone volume from snapshot of another volume
  2. Create a volume from an backup

It also does some cleanup on comments and file renames for better consistency.

Release Note Template for Downstream PRs (will be copied)

netapp: added field `restore_parameters` and output-only fields `state`, `state_details` and `create_time` to `google_netapp_volume` resource

Derived from GoogleCloudPlatform/magic-modules#9918

* Add force delete to delete volumes with nested snapshots

* few cleanups

* Make virtual field verifies happy

* Minor test improvements

* Remove ignore_read for deletion_policy

* Fix typos in snapRestore comment

* Adding missing fields state, StateDetails, backupConfig

* BackupConfig is work in progress

* Implemented restoreParameters

- added parameters state and state_details. Needs discussion if they are to be included. Currently they are deactivated
- added restore_parameters.
- added test for restore_parameters.source_snapshot
- adding a test for restore_parameters.sourceBackup required currently non-existing backup resoruce and would have long runtime
- renamed the example file to follow format of other peer resources

* More improvements on restore_parameters

* Comment cleanups

* Remove backupConfig support for now.

* Fix small typos

* - Adding state, state_details and create_time fields
- make backup_config parameters "exactly_one_of"
- some work on backup_config, but still disabled
- added tests for backup_config, but still disabled
- made tests more compact by removing resources and fields which did their job earlier but aren't required later anymore.

* convert tabs to spaces in test resource blocks

* remove backupConfig. Will PR later

[upstream:44e139bad1261704549ac95150b5b666ff790528]

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit e944daf into hashicorp:main Feb 15, 2024
4 checks passed
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant